<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page session="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/my.tld" prefix="my" %>
<%@ taglib uri="/WEB-INF/tld/user.tld" prefix="user" %>
<%@ taglib uri="/WEB-INF/tld/activity.tld" prefix="activity" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
	
	<ul class="space_ul" id="purl_list">                	
                    <!--begin-->
		 <c:forEach var="c" items="${result}" varStatus="s">
             <c:set var="info" value="${activity:activity(c.aid)}"/>
             <c:set var="expire" value="${activity:isExpire(c.endtime)}" />
				<c:if test="${expire eq 1}">
				<c:set var="css_expire" value="new_t1"/>
				</c:if>
				<c:if test="${expire ne 1}">
				<c:set var="css_expire" value="new_t"/>
				</c:if>               
                	<li>
                    	<strong class="f14"><fmt:formatDate value='${c.endtime}' pattern='yyyy年MM月dd'/></strong>
                        <div class="space_list">
                        	<h3 class="f14"><a href="${basehost}activity.do${p1}&amp;do=Activity.view&amp;aid=${c.id}">${my:txt(info.title)}<c:if test="${expire eq 1}">[结束]</c:if></a><span>已传递</span><c:set var="views" value="${activity:views(info.id, info.views, 0)}"/><c:if test="${views ne 0}">${views)}</c:if>人</h3>
                        	
                            <p>${my:substring(my:txt(info.content),100)}</p>
                            <div>所属：<c:if test="${empty c.city}"><a href="${basehost}portal.do${p1}&amp;do=Portal.layout">全国</a></c:if>
                               <c:if test="${not empty c.city}"><c:set var="sc" value="${my:city(c.city)}"/><c:if test="${empty sc}"><a href="${basehost}portal.do${p1}&amp;do=Portal.layout">全国</a></c:if><c:if test="${not empty sc}"><a href="${basehost}portal.do${p1}&amp;do=Portal.layout">${my:txt(sc.name)}</a></c:if></c:if>
								<c:forEach var="cc" items="${activity:pids(c.category)}" varStatus="s">
								<c:set var="ca" value="${activity:category(cc)}"/>
								&gt;<a href="${basehost}activity.do${p1}&amp;do=Activity.${activity:type(cc)}&amp;cid=${cc}">${ca.name}</a>
								</c:forEach>
							</div> 
                       </div>
                    </li>                
              </c:forEach>
            <!--over-->
            <c:if test="${empty result}"><div class="item">暂无相关数据</div></c:if>
                </ul>
                <div class="page" id="shopping_list_counter" ><c:import url="/WEB-INF/tpl/tpl/_pager_full2.jsp" /></div>
            </div>